package com.qiaofang.applet.service.property.service;

import com.qiaofang.applet.service.other.service.dto.EmployeeEntrustQueryDto;
import com.qiaofang.applet.service.other.service.dto.PropertyEntrustDto;
import com.qiaofang.applet.service.other.service.dto.PropertyEntrustQueryV1Dto;
import com.qiaofang.applet.service.property.service.dto.NewEntrustSimpleDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author: youqing.yang
 * @Create: 2020/12/23 19:28
 * @Description:
 **/
public interface PropertyEntrustService {

    /**
     * 分页查询房源委托
     * @param query
     * @param pageable
     * @return
     */
    Page<PropertyEntrustDto> getPropertyEntrustPage(PropertyEntrustQueryV1Dto query, Pageable pageable);

    /**
     * 分页查询房源委托
     * @param pageable
     * @return
     */
    Page<PropertyEntrustDto> getEmployeeEntrusts(EmployeeEntrustQueryDto queryDto, Pageable pageable);

    /**
     * 经纪人首页新委托
     * @return
     */
    List<NewEntrustSimpleDto> newEntrustList(String employeeUniqueUuid);

    /**
     * 经纪人首页新委托
     * @return
     */
    void acceptEntrustMyself(Long propertyEntrustId);
}
